package com.demo.service;

import com.demo.dao.IUserMapper;
import com.demo.entity.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName: UserService
 * @Description: TODO
 **/
@Service
public class UserService {

    @Resource
    private IUserMapper userMapper;

    public User findById(int id){
       return userMapper.findById(id);
    }
}
